package com.octopus.optiworks.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class Step10_2DataRework implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	
	private Step10_2Data step10_2Data;
	
	private String operator;
	
	private Date date;
	
	private String failedCells;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column
	public String getFailedCells() {
		return failedCells;
	}

	public void setFailedCells(String failedCells) {
		this.failedCells = failedCells;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STEP10_2DATAID")
	public Step10_2Data getStep10_2Data() {
		return step10_2Data;
	}

	public void setStep10_2Data(Step10_2Data step10_2Data) {
		this.step10_2Data = step10_2Data;
	}
}
